#include "Bullet2FileLoader/b3Serializer.h"
#ifdef __cplusplus
extern "C" {
#endif
b3PointerUid* bullet_Newb3PointerUid(){
	b3PointerUid* wrap_out = new b3PointerUid();
	return wrap_out;
}

b3DefaultSerializer* bullet_Newb3DefaultSerializer(int totalSize){
	int c_arg_totalSize=totalSize;
	b3DefaultSerializer* wrap_out = new b3DefaultSerializer(c_arg_totalSize);
	return wrap_out;
}

void bullet_b3DefaultSerializer_writeHeader(b3DefaultSerializer* c_this,unsigned char* buffer){
	unsigned char * c_arg_buffer=(unsigned char *)(void*)(buffer);
	c_this->writeHeader(c_arg_buffer);
}

b3Chunk* bullet_Newb3Chunk(){
	b3Chunk* wrap_out = new b3Chunk();
	return wrap_out;
}

int bullet_b3Chunk_GetFieldOfM_chunkCode(b3Chunk* c_this){
	return (int)(c_this->m_chunkCode);
}

int bullet_b3Chunk_GetFieldOfM_dna_nr(b3Chunk* c_this){
	return (int)(c_this->m_dna_nr);
}

int bullet_b3Chunk_GetFieldOfM_length(b3Chunk* c_this){
	return (int)(c_this->m_length);
}

int bullet_b3Chunk_GetFieldOfM_number(b3Chunk* c_this){
	return (int)(c_this->m_number);
}

void** bullet_b3Chunk_GetFieldOfM_oldPtr(b3Chunk* c_this){
	return (void**)(&c_this->m_oldPtr);
}

#ifdef __cplusplus
}
#endif
